home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Papers / C++ Exceptions / µShell / Threads Support / AEThreads.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-13  |  918 b   |  44 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        AEThreads.h
  3.                   
  4.     Contains:    Interfaces for installing threaded AppleEvent handlers
  5.  
  6.     Written by: Steve Sisak
  7.  
  8.      Copyright:    © 1993-94 Steve Sisak
  9.                 License is granted to use, modify, make derivative works, and 
  10.                 duplicate this code at will, so long as this notice remains intact.
  11.  
  12. */
  13.  
  14. #ifndef __AETHREADS__
  15. #define __AETHREADS__
  16. #pragma once
  17.  
  18.  
  19. #ifndef __THREADS__
  20. #include <Threads.h>
  21. #endif
  22.  
  23. #ifndef __APPLEEVENTS__
  24. #include <AppleEvents.h>
  25. #endif
  26.  
  27.  
  28. pascal OSErr AEHandleInThread(
  29.                     const AppleEvent*    event,
  30.                     AppleEvent*            reply,
  31.                     AEEventHandlerUPP    handler,
  32.                     long                handlerRefcon,
  33.                     ThreadOptions        options,
  34.                     Size                stacksize);    
  35.  
  36. pascal OSErr AEInstallThreadedEventHandler(
  37.                     AEEventClass        theAEEventClass,
  38.                     AEEventID            theAEEventID,
  39.                     AEEventHandlerUPP    proc,
  40.                     long                handlerRefcon,
  41.                     ThreadOptions        options,
  42.                     Size                stacksize);    
  43.  
  44. #endif // __AETHREADS__